package com.example.demo.service;

import com.example.demo.dataobject.MedicineShorthand;

import java.sql.Timestamp;
import java.util.List;

public interface MedicineShorthandService {
    MedicineShorthand save(String telephone, String insulinName, Integer insulinDose, String oralMedicineName, Integer oralMedicineDose, String remarks, Timestamp recordTime);
    List<MedicineShorthand> findByTelephoneOrderByRecordTimeDesc(String telephone);
    MedicineShorthand saveModification(Integer id,String telephone, String insulinName, Integer insulinDose, String oralMedicineName, Integer oralMedicineDose, String remarks, Timestamp recordTime);
    Boolean delete(Integer id);
    MedicineShorthand findById(Integer id);


}
